From: Jo-Philipp Wich Date: Fri, 27 Sep 2019 10:01:41 +0000 (+0200) Subject: luci-mod-system: allow deleting all NTP servers X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=ad05b61dceb676596f61035d1ddec017cee18298;p=project%2Fluci.git luci-mod-system: allow deleting all NTP servers Fixes: #3121 Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js index 18af222d29..6563bf4638 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js @@ -270,11 +270,8 @@ return L.view.extend({ o.datatype = 'host(0)'; o.ucisection = 'ntp'; o.depends('enabled', '1'); - o.remove = function() {}; // retain server list even if disabled o.load = function(section_id) { - return uci.get('system', 'ntp') - ? uci.get('system', 'ntp', 'server') - : default_servers; + return uci.get('system', 'ntp', 'server'); }; }